package com.hrbxlh.virtualization.dao;

import com.hrbxlh.virtualization.dto.CourseDTO;
import com.hrbxlh.virtualization.dto.ImageAllocationDTO;
import com.hrbxlh.virtualization.param.CourseQueryParam;
import com.hrbxlh.virtualization.pojo.ImageAllocation;

import java.util.List;

public interface ImageAllocationMapperExt {

    Long selectIdByClusterIdLimit1(Long clusterId);

    List<CourseDTO> listCourseDTOs(CourseQueryParam courseQueryParam);

    List<ImageAllocationDTO> listImageAllocationsByCourseId(Integer courseId);

    List<ImageAllocationDTO> listImageAllocationsByChapterId(Integer chapterId);

    int insertOrUpdate(ImageAllocation chapterImage);

    List<Integer> listChapterIdsByCourseId(Integer courseId);

    Integer selectReleaseCourseIdByChapterId(Integer chapterId);

    Integer selectReleaseCourseIdLimit1(List<Integer> courseIdList);
}